<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2014 Christian Hildebrandt

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets" class="bg-black">
<h:head>
	<title>Timera Worktime Management | Log in</title>
	<f:facet name="first">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
		<link href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
	</f:facet>
	<f:facet name="middle">
		<!-- Theme style -->
		<h:outputStylesheet name="theme.css" library="css" />
	</f:facet>
	<f:facet name="last">
		<!-- 		FOR DEBUG MODE ONLY -->
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
		<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js" type="text/javascript"></script>
		<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
	</f:facet>
</h:head>
<h:body styleClass="bg-black">

	<h:panelGroup layout="block" styleClass="form-box" id="login-box">
		<h:panelGroup layout="block" styleClass="header">
			<h:outputText value="#{msg['login.label.header']}" />
		</h:panelGroup>
		<h:form id="loginForm">
			<h:panelGroup layout="block" styleClass="body bg-gray">
				<h:panelGroup layout="block" stylestyleClass="form-group">
					<h:inputText id="username" value="#{loginBean.username}" styleClass="form-control" required="true" placeholder="#{msg['login.label.username']}" />
				</h:panelGroup>
				<h:panelGroup layout="block" styleClass="form-group">
					<h:inputSecret id="password" value="#{loginBean.password}" styleClass="form-control" required="true" placeholder="#{msg['login.label.password']}" />
				</h:panelGroup>
				<h:panelGroup layout="block" styleClass="form-group">
					<h:selectBooleanCheckbox id="remember_me" value="#{loginBean.rememberMe}" />
					<h:outputText value=" #{msg['login.label.rememberme']}" />
				</h:panelGroup>
				<h:messages globalOnly="true" />
			</h:panelGroup>
			<h:panelGroup layout="block" styleClass="footer">
				<h:commandButton id="btnLogin" action="#{loginBean.login()}" value="#{msg['login.label.login']}" styleClass="btn bg-olive btn-block" />

				<!-- 				<p> -->
				<!-- 					<a href="#">I forgot my password</a> -->
				<!-- 				</p> -->

			</h:panelGroup>
		</h:form>
	</h:panelGroup>
</h:body>
</html>
